package com.txsj.scan.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;

/**
 * @Created by WangChuangJun on 2018/11/26
 * @Describe
 */
@Entity( indexes = {
        @Index(value = "goods_id,  warehouse_id", unique = true)
})
public class GoodsInfo {

    /**
     * upper_limit : 0
     * lower_limit : 0
     * inventory_in : 11
     * inventory_out : 37
     * inventory_keep : -26
     * can_inventory_keep : 0
     * unit_price : 1
     * total_price : 0
     * inventory_id : 0
     * goods_id : 2332
     * goods_name : 力士滋养柔肤娇肤香皂115gX3 115g*3
     * goods_num : 6902088307122
     * goods_img : http://img.txooo.com/2018/01/29/68d328198030903e7851349af73d41c7.jpg
     * gs1_num : 6690208830712200000
     * goods_class_id : 1598
     * batch_id : 0
     * expiry_time : 9999-12-31 00:00:00
     * days_overdue : 0
     *
     *
     * vmall_id : 117
     * brand_id : 498529
     * first_class_id : 0
     * second_class_id : 0
     * third_class_id : 0
     * goods_brand_id : 0
     * keywords :
     * postage : 0
     * temp_id : 0
     * integral : 0
     * volume : 20
     * goods_explain :
     * is_del : 0
     * add_time : 2018-09-21 11:23:38
     * is_gift : 0
     * is_check : true
     * is_consult : false
     * open_warning : 1
     * use_batch : true
     * use_overdue : false
     * shelf_life : 0
     * life_unit : 0
     * is_top : false
     * limit_count : 0
     * consult_time : 0001-01-01 00:00:00
     * check_remark : null
     * goods_class_name : null
     * InComeAverage : 0
     * purchase_count : 0
     * deficit : 0
     * supplier_name : null
     * rfid : null
     * SalesAverage : 0
     * goods_state : 1
     * origin_price : 6
     * goods_price : 6
     * discount : 1
     * repertory : 4
     * member_price : 6
     */
    @Id(autoincrement = true)
    private Long id;
    private int upper_limit;
    private int lower_limit;
    private int inventory_in;
    private int inventory_out;
    private int inventory_keep;
    private int can_inventory_keep;
    private float unit_price;
    private float total_price;
    private int inventory_id;
    private int goods_id;
    private String goods_name;
    private String goods_num;
    private String goods_img;
    private long gs1_num;
    private int goods_class_id;
    private int batch_id;
    private String expiry_time;
    private int days_overdue;
    private String warehouse_id;//本地记录到数据库。进行warehouse存储
    private int bind_memory;//在绑定标签的时候曾经选择过该商品 0:未选择过， 1：选择过
    @Transient
    private boolean selected;//本地变量记录数据
    @Transient
    private List<InventoryBatchBean> batchList;//本地变量，记录批次信息（重整数据结构）
    @Transient
    private List<EpcInfo> epcList;//本地变量
    @Transient
    private long count;//商品数量（本地）

    private int vmall_id;
    private int brand_id;
    private int first_class_id;
    private int second_class_id;
    private int third_class_id;
    private int goods_brand_id;
    private String keywords;
    private String goods_explain;
    private String add_time;
    private int is_gift;
    private boolean is_check;
//    private boolean is_consult;
    private int open_warning;
    private boolean use_batch;
    private boolean use_overdue;
    private int shelf_life;
    private int life_unit;
    private String goods_class_name;
    private String supplier_name;
    private int goods_state;
    private float origin_price;
    private float goods_price;
    private float discount;
    private int repertory;
    private float member_price;


    @Generated(hash = 184360592)
    public GoodsInfo(Long id, int upper_limit, int lower_limit, int inventory_in,
            int inventory_out, int inventory_keep, int can_inventory_keep, float unit_price,
            float total_price, int inventory_id, int goods_id, String goods_name,
            String goods_num, String goods_img, long gs1_num, int goods_class_id,
            int batch_id, String expiry_time, int days_overdue, String warehouse_id,
            int bind_memory, int vmall_id, int brand_id, int first_class_id,
            int second_class_id, int third_class_id, int goods_brand_id, String keywords,
            String goods_explain, String add_time, int is_gift, boolean is_check,
            int open_warning, boolean use_batch, boolean use_overdue, int shelf_life,
            int life_unit, String goods_class_name, String supplier_name, int goods_state,
            float origin_price, float goods_price, float discount, int repertory,
            float member_price) {
        this.id = id;
        this.upper_limit = upper_limit;
        this.lower_limit = lower_limit;
        this.inventory_in = inventory_in;
        this.inventory_out = inventory_out;
        this.inventory_keep = inventory_keep;
        this.can_inventory_keep = can_inventory_keep;
        this.unit_price = unit_price;
        this.total_price = total_price;
        this.inventory_id = inventory_id;
        this.goods_id = goods_id;
        this.goods_name = goods_name;
        this.goods_num = goods_num;
        this.goods_img = goods_img;
        this.gs1_num = gs1_num;
        this.goods_class_id = goods_class_id;
        this.batch_id = batch_id;
        this.expiry_time = expiry_time;
        this.days_overdue = days_overdue;
        this.warehouse_id = warehouse_id;
        this.bind_memory = bind_memory;
        this.vmall_id = vmall_id;
        this.brand_id = brand_id;
        this.first_class_id = first_class_id;
        this.second_class_id = second_class_id;
        this.third_class_id = third_class_id;
        this.goods_brand_id = goods_brand_id;
        this.keywords = keywords;
        this.goods_explain = goods_explain;
        this.add_time = add_time;
        this.is_gift = is_gift;
        this.is_check = is_check;
        this.open_warning = open_warning;
        this.use_batch = use_batch;
        this.use_overdue = use_overdue;
        this.shelf_life = shelf_life;
        this.life_unit = life_unit;
        this.goods_class_name = goods_class_name;
        this.supplier_name = supplier_name;
        this.goods_state = goods_state;
        this.origin_price = origin_price;
        this.goods_price = goods_price;
        this.discount = discount;
        this.repertory = repertory;
        this.member_price = member_price;
    }

    @Generated(hash = 1227172248)
    public GoodsInfo() {
    }


    //本地变量===================================>>
    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public List<InventoryBatchBean> getBatchList() {
        return batchList;
    }

    public void setBatchList(List<InventoryBatchBean> batchList) {
        this.batchList = batchList;
    }

    public List<EpcInfo> getEpcList() {
        return epcList;
    }

    public void setEpcList(List<EpcInfo> epcList) {
        this.epcList = epcList;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }
    //本地变量<<===================================

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getUpper_limit() {
        return this.upper_limit;
    }

    public void setUpper_limit(int upper_limit) {
        this.upper_limit = upper_limit;
    }

    public int getLower_limit() {
        return this.lower_limit;
    }

    public void setLower_limit(int lower_limit) {
        this.lower_limit = lower_limit;
    }

    public int getInventory_in() {
        return this.inventory_in;
    }

    public void setInventory_in(int inventory_in) {
        this.inventory_in = inventory_in;
    }

    public int getInventory_out() {
        return this.inventory_out;
    }

    public void setInventory_out(int inventory_out) {
        this.inventory_out = inventory_out;
    }

    public int getInventory_keep() {
        return this.inventory_keep;
    }

    public void setInventory_keep(int inventory_keep) {
        this.inventory_keep = inventory_keep;
    }

    public int getCan_inventory_keep() {
        return this.can_inventory_keep;
    }

    public void setCan_inventory_keep(int can_inventory_keep) {
        this.can_inventory_keep = can_inventory_keep;
    }

    public float getUnit_price() {
        return this.unit_price;
    }

    public void setUnit_price(float unit_price) {
        this.unit_price = unit_price;
    }

    public float getTotal_price() {
        return this.total_price;
    }

    public void setTotal_price(float total_price) {
        this.total_price = total_price;
    }

    public int getInventory_id() {
        return this.inventory_id;
    }

    public void setInventory_id(int inventory_id) {
        this.inventory_id = inventory_id;
    }

    public int getGoods_id() {
        return this.goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return this.goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_num() {
        return this.goods_num;
    }

    public void setGoods_num(String goods_num) {
        this.goods_num = goods_num;
    }

    public String getGoods_img() {
        return this.goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }

    public long getGs1_num() {
        return this.gs1_num;
    }

    public void setGs1_num(long gs1_num) {
        this.gs1_num = gs1_num;
    }

    public int getGoods_class_id() {
        return this.goods_class_id;
    }

    public void setGoods_class_id(int goods_class_id) {
        this.goods_class_id = goods_class_id;
    }

    public int getBatch_id() {
        return this.batch_id;
    }

    public void setBatch_id(int batch_id) {
        this.batch_id = batch_id;
    }

    public String getExpiry_time() {
        return this.expiry_time;
    }

    public void setExpiry_time(String expiry_time) {
        this.expiry_time = expiry_time;
    }

    public int getDays_overdue() {
        return this.days_overdue;
    }

    public void setDays_overdue(int days_overdue) {
        this.days_overdue = days_overdue;
    }

    public String getWarehouse_id() {
        return this.warehouse_id;
    }

    public void setWarehouse_id(String warehouse_id) {
        this.warehouse_id = warehouse_id;
    }

    public int getBind_memory() {
        return this.bind_memory;
    }

    public void setBind_memory(int bind_memory) {
        this.bind_memory = bind_memory;
    }

    public int getVmall_id() {
        return this.vmall_id;
    }

    public void setVmall_id(int vmall_id) {
        this.vmall_id = vmall_id;
    }

    public int getBrand_id() {
        return this.brand_id;
    }

    public void setBrand_id(int brand_id) {
        this.brand_id = brand_id;
    }

    public int getFirst_class_id() {
        return this.first_class_id;
    }

    public void setFirst_class_id(int first_class_id) {
        this.first_class_id = first_class_id;
    }

    public int getSecond_class_id() {
        return this.second_class_id;
    }

    public void setSecond_class_id(int second_class_id) {
        this.second_class_id = second_class_id;
    }

    public int getThird_class_id() {
        return this.third_class_id;
    }

    public void setThird_class_id(int third_class_id) {
        this.third_class_id = third_class_id;
    }

    public int getGoods_brand_id() {
        return this.goods_brand_id;
    }

    public void setGoods_brand_id(int goods_brand_id) {
        this.goods_brand_id = goods_brand_id;
    }

    public String getKeywords() {
        return this.keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getGoods_explain() {
        return this.goods_explain;
    }

    public void setGoods_explain(String goods_explain) {
        this.goods_explain = goods_explain;
    }

    public String getAdd_time() {
        return this.add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public int getIs_gift() {
        return this.is_gift;
    }

    public void setIs_gift(int is_gift) {
        this.is_gift = is_gift;
    }

    public boolean getIs_check() {
        return this.is_check;
    }

    public void setIs_check(boolean is_check) {
        this.is_check = is_check;
    }

    public int getOpen_warning() {
        return this.open_warning;
    }

    public void setOpen_warning(int open_warning) {
        this.open_warning = open_warning;
    }

    public boolean getUse_batch() {
        return this.use_batch;
    }

    public void setUse_batch(boolean use_batch) {
        this.use_batch = use_batch;
    }

    public boolean getUse_overdue() {
        return this.use_overdue;
    }

    public void setUse_overdue(boolean use_overdue) {
        this.use_overdue = use_overdue;
    }

    public int getShelf_life() {
        return this.shelf_life;
    }

    public void setShelf_life(int shelf_life) {
        this.shelf_life = shelf_life;
    }

    public int getLife_unit() {
        return this.life_unit;
    }

    public void setLife_unit(int life_unit) {
        this.life_unit = life_unit;
    }

    public String getGoods_class_name() {
        return this.goods_class_name;
    }

    public void setGoods_class_name(String goods_class_name) {
        this.goods_class_name = goods_class_name;
    }

    public String getSupplier_name() {
        return this.supplier_name;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public int getGoods_state() {
        return this.goods_state;
    }

    public void setGoods_state(int goods_state) {
        this.goods_state = goods_state;
    }

    public float getOrigin_price() {
        return this.origin_price;
    }

    public void setOrigin_price(float origin_price) {
        this.origin_price = origin_price;
    }

    public float getGoods_price() {
        return this.goods_price;
    }

    public void setGoods_price(float goods_price) {
        this.goods_price = goods_price;
    }

    public float getDiscount() {
        return this.discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }

    public int getRepertory() {
        return this.repertory;
    }

    public void setRepertory(int repertory) {
        this.repertory = repertory;
    }

    public float getMember_price() {
        return this.member_price;
    }

    public void setMember_price(float member_price) {
        this.member_price = member_price;
    }

}
